function offsetHeight (select) {
    return document.querySelector(select).offsetHeight
}
function getScrollNum (offsetHeight) {
    return document.documentElement.scrollTop / offsetHeight
}
function opacity0 (...select) {
    for (let item of select) {
        document.querySelector(item).style.opacity = "0"
    }
}
function opacity1 (...select) {
    for (let item of select) {
        document.querySelector(item).style.opacity = "1"
    }
}
function height0 (...select) {
    for (let item of select) {
        document.querySelector(item).style.height = "0vh"
    }
}
function height100 (...select) {
    for (let item of select) {
        document.querySelector(item).style.height = "100vh"
    }
}
function heightChange (num, ...select) {
    for (let item of select) {
        document.querySelector(item).style.height = num + "vh"
    }
}
function translateX (num, ...select) {
    for (let item of select) {
        document.querySelector(item).style.transform = `translateX(${num}%)`
    }
}
function scrollColor (num0, num1, color0, color1) {
    document.styleSheets[0].cssRules[num0].style.cssText += `background-color:${color0}`
    document.styleSheets[0].cssRules[num1].style.cssText += `background-color:${color1}`
}
function heightWorkOut (select, num, ...cond) {
    if (cond[0]) {
        for (let item of select)
            return document.querySelector(item).style.height = '0vh'
    }
    else if (cond[1]) {
        for (let item of select)
            return document.querySelector(item).style.height = `${num}vh`
    }
    else {
        for (let item of select)
            return document.querySelector(item).style.height = '100vh'
    }
}
function positonWorkOut (cond, ...select) {
    if (cond) {
        for (let item of select) {
            document.querySelector(item).style.position = "static"
        }
        return
    }
    for (let item of select) {
        document.querySelector(item).style.position = "fixed"
    }
}
// function changeColorAnimation () {
//     const dom = document.querySelector('.content')
//     const children = dom.children
//     if (children.length != 3)
//         return console.log('changeColorAnimation动画需要三个dom，您的dom数不为三个')
//     for (let item of children) {
//         item[0]
//     }
// }